package gphoto.bo;

public class Concerne implements Comparable<Concerne> {

	private int id;
	
	private String nom;
	
	public Concerne(int pId, String pNom) {
		id = pId;
		nom = pNom;
	}

	public Concerne(String pNom) {
		id = -1;
		nom = pNom;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getNom() {
		return nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	public int compareTo(Concerne c) {
		
		return nom.compareTo(c.getNom());
	}
	
	public String toString() {

		return "[CONCERNE : nom='"+nom+"' ]";
	}
}
